import Vue from 'vue'
import Vuex from 'vuex'
import menus from "@/store/modules/menus";
import getters from "@/store/getters";
import mutations from "@/store/mutations";
import actions from "@/store/actions";
import fa from "element-ui/src/locale/lang/fa";

Vue.use(Vuex)

const state = {
  token:'',
  loginStatue:false,
  showLogin:false,
  userInfo:{},//用户信息
}

const store = new Vuex.Store({
  state,
  mutations,
  actions,
  getters,
  modules: {
    menus
  },
})
//挂载Vue实例上
export default store
